<?php
namespace app\api\model;

use think\Model;

class User extends BaseModel
{
	public function orders()
    {
        return $this->hasMany('Order', 'user_id', 'id');
    }
}